<?php
namespace Home\Controller;
use Think\Controller;
class NoticeController extends Controller {
	public function index(){
		if(IS_POST){
			$notice = D('Notice');
			$item = $notice->order('cdate desc,ctime desc')->find();
			$notice_id = I('notice_id');
			if($item['id'] != $notice_id){
				$json['result'] = 0;
				$json['msg'] = "获取通知成功";
				$json['notice'] = $item;
			}else{
				$json['result'] = -1;
				$json['msg'] = "获取通知失败";
			}
			$this->ajaxReturn($json);
		}
	}
}